<div>
    <link rel="stylesheet" href="../css/productListPage.css" />
    <b class="userName"> 当前用户:<b ng-model="userName" >{{userName}}</b></b>
    <div class="mainTable">
        <p class="product">商品列表</p>
        <button style="background-color:pink" class="cart" ng-click="jumpShoppingCartPage()"><img class="cartImg" src="../npg/shopping_cart.png"/>购物车(<a ng-model="cartCount">{{cartCount}}</a>)</button>
        <table class="tableList">
        <tr>
        <th>分类</th>
        <th>名称</th>
        <th>单价(元)</th>
        <th>单位</th>
        <th></th>
        </tr>
        <tr ng-repeat="product in productList">
            <td class="tdPadding">{{product.classification}}</td>
            <td class="tdPadding">{{product.itemName}}</td>
            <td class="tdPadding">{{product.price}}</td>
            <td class="tdPadding">{{product.unit}}</td>
            <td><button  ng-click="addButtonEvent(product,1)" class="addButton">加入购物车</button></td>
        </tr>
    </table>
    </div>
</div>